import React, { useState } from 'react';
import Dialog from './components/dialog'


const App1 = () => {
  const [show, setShow] = useState(false)
  return (
    <div>
      <button onClick={() => setShow(true)}>打开弹框</button>
      <Dialog show={show} close={() => setShow(false)}>
        <div style={{ textAlign: 'center' }}>
           <h3>微信扫一扫</h3>
        <h3>将你的团购分享到朋友圈</h3>
        <h3>让更多的朋友知道哦</h3>
        <img width="200" style={{ border: '1px solid #ccc' }} src="https://robohash.org/123?set=set5" alt="" />
        </div>
      </Dialog>
    </div>  
  )
}

export default App1